<script>
	import db from './util/db';
	import moneyService from './dbservice/moneyService';
	export default {
		onLaunch: function() {
			var r0 = db.createDatabase();
			var r1 = moneyService.createTalbe();
			// moneyService.deleteAllDate();
			// var r2 = moneyService.insertdata();
			// let rsult = moneyService.selectAllData();
			// r0.then(res => console.log(res)).catch( error => console.log(error ));
			// r1.then(res => console.log(res)).catch( error => console.log(error ));
			// r2.then(res => console.log(res)).catch( error => console.log(error ));
			// rsult.then(res => console.log(res)).catch( error => console.log(error ));
			// moneyService.countAllMoney().then(res => console.log(res)).catch( error => console.log(error ));
		},
	}
</script>

<style lang="scss">
	@import "uview-ui/index.scss";
	@import "utilCss.css";
</style>